package com.wds.controller;


import com.wds.domain.JsonResult;
import com.wds.domain.vo.CategoryVo;
import com.wds.service.CategoryService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 分类表(Category)控制层
 *
 * @author wds
 * @since 2022-10-23 12:51:25
 */
@RestController
@RequestMapping("/category")
@Api(tags = "类别接口")
public class CategoryController {
    /**
     * 服务对象
     */
    @Autowired
    private CategoryService categoryService;


    @GetMapping("/getCategoryList")
    public JsonResult<List<CategoryVo>> getCategoryList() {
        return categoryService.getCategoryList();
    }

}

